﻿using Entity;
using System.Collections.Generic;
using Utils;

namespace DataBaseConnect.App
{
    public interface IFormAppService
    {

        /// <summary>
        /// 添加表单信息
        /// </summary>
        /// <param name="Input">参数实体</param>
        /// <returns></returns>
        ReceiveStatus AddFromMsg(Form Input);

        /// <summary>
        /// 获取所有的表单和根据表单名称查询
        /// </summary>
        /// <param name="Name">表单名称</param>
        /// <returns></returns>
        List<Form> GetFormList(string Name);

        /// <summary>
        /// 根据主键获取表单
        /// </summary>
        /// <param name="Id">id</param>
        /// <returns></returns>
        List<Form> GetFormId(int Id);

        /// <summary>
        /// 编辑表单信息
        /// </summary>
        /// <param name="Input">参数实体</param>
        /// <returns></returns>
        ReceiveStatus EditFormMsg(Form Input);
    }
}
